<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ex" uri="/WEB-INF/mytag.tld" %>
<%@ page isELIgnored="false" %>
<html>
<head>
    <title>Login Result</title>
</head>
<body>
<ex:Date pattern="dd-MM-YYYY HH:mm:ss">
    Date is:
</ex:Date>
<%
    String login = request.getParameter("login");
    String pass = request.getParameter("pass");
%>
<jsp:useBean id="userSessionBean" class="mvp.levelup.web.bean.UserSessionBean" scope="session"/>
<jsp:setProperty name="userSessionBean" property="login" value="<%=login%>"/>
<jsp:setProperty name="userSessionBean" property="pass" value="<%=pass%>"/>
<h3>Hello, dear User!</h3>
<table>
    <tr>
        <td>Your Login:</td>
        <td>
            <jsp:getProperty name="userSessionBean" property="login"/>
        </td>
    </tr>
    <tr>
        <td>Your Pass:</td>
        <td>
            <jsp:getProperty name="userSessionBean" property="pass"/>
        </td>
    </tr>
</table>
<c:if test="${userSessionBean.ok}">
    <c:redirect url="items.jsp"/>
</c:if>

Ahtung! Wrong Login/Password!

</body>
</html>
